package com.mxb.sqlsession;

import com.mxb.model.Configuration;
import com.mxb.model.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * 类描述
 *
 * @Author: MaXiaobing
 * @Date: 2021/3/9 21:39
 */
public interface Executor {

    <T> List<T> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, Exception;
    int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, Exception;
}
